﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;

namespace CSharpBot
{
    public static class FMLBot
    {
        static readonly string botName = "FML";

        public static void init()
        {
            Console.Title = "C# " + botName + " is up and running!";

            Console.Write("[");
            Console.ForegroundColor = ConsoleColor.White;
            Console.Write(botName);
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write("] ");
            Console.WriteLine();
        suiteRestart:
            Console.Write("Command: ");
            Console.ForegroundColor = ConsoleColor.Magenta;
            string command = Console.ReadLine();
            Console.ForegroundColor = ConsoleColor.Gray;

            string[] arguments = command.Split(' ');
            if (arguments.Length > 0)
            {
                if (arguments[0] == "!fml")
                    Parse.parseXML(2);
            }
            goto suiteRestart;
        }
    }
}
